package com.qqbot.core.core.framework;

import com.qqbot.core.core.BotFactory;
import lombok.RequiredArgsConstructor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

/**
 * 机器人初始化
 *
 * @author changwenpeng
 * @date 2022年5月9日
 */
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class BotInit implements CommandLineRunner {

    @Override
    public void run(String... args) {
        BotFactory.initHandlerMethod();
        BotFactory.initBot();
    }

}
